<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<shiro:hasRole name="ADMIN">
    <h3>Admin</h3>
    <ul class="sidemenu">
        <li><a href="<spring:url value="/admin/roles"/>">Grant roles</a></li>
    </ul>
</shiro:hasRole>

<shiro:authenticated>
    <h3>Panel</h3>
    <ul class="sidemenu">
        <li>Username: <shiro:principal/></li>
        <li><a href="<spring:url value="/profile"/>">Edit profile</a></li>
        <li><a href="<spring:url value="/password"/>">Reset password</a></li>
        <li><a href="<spring:url value="/logout"/>">Logout</a></li>
    </ul>
</shiro:authenticated>

<h3>Stats</h3>
<ul class="sidemenu">
    <li>Registered accounts: <big>${accountsCount}</big></li>
    <li>Shares: <big>${resourcesCount}</big></li>
</ul>
